package practice;

import java.io.File;
import java.util.Scanner;

public class Test04 {
    public static void main(String[] args) {
        Scanner scan = new Scanner(System.in);
        System.out.println("请输入要删除的目录名：");
        String name = scan.nextLine();
        File file = new File("./"+name);
        if(file.exists()) {
            file.delete();
        }
        System.out.println("删除是否成功："+!(file.exists()));
    }
}
